package com.fruit.pojo.account.transaction;

import java.io.Serializable;
import java.math.BigDecimal;
/**
 * 交易流水POJO(for commission back)
 * @author Administrator
 *
 */

import com.fruit.pojo.account.commission.CommissionDetail;
public class TransactionFlowPo implements Serializable {
    private Long id;
    
    private Long parentId;

    private String code;

    private Integer userId;

    private BigDecimal totalPrice;

    private BigDecimal payPrice;

    private String priceState;

    private String remark;

    private String state;

    private String type;
    
    private String subType;

    private String createTime;

    private String finishTime;

    private Integer version;

    private String operatorId; 
    
    private String isShow;//是否展示
    
    private BigDecimal points;//积分
    
    private BigDecimal ticket;// 粮票
    
    private CommissionDetail cd = new CommissionDetail();//返利对象

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code == null ? null : code.trim();
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public BigDecimal getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(BigDecimal totalPrice) {
        this.totalPrice = totalPrice;
    }

    public BigDecimal getPayPrice() {
        return payPrice;
    }

    public void setPayPrice(BigDecimal payPrice) {
        this.payPrice = payPrice;
    }

    public String getPriceState() {
        return priceState;
    }

    public void setPriceState(String priceState) {
        this.priceState = priceState == null ? null : priceState.trim();
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state == null ? null : state.trim();
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type == null ? null : type.trim();
    }

    public String getSubType() {
		return subType;
	}

	public void setSubType(String subType) {
		this.subType = subType;
	}

	public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime == null ? null : createTime.trim();
    }

    public String getFinishTime() {
        return finishTime;
    }

    public void setFinishTime(String finishTime) {
        this.finishTime = finishTime == null ? null : finishTime.trim();
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public String getOperatorId() {
        return operatorId;
    }

    public void setOperatorId(String operatorId) {
        this.operatorId = operatorId == null ? null : operatorId.trim();
    }
        
    public Long getParentId() {
		return parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}


	public String getIsShow() {
		return isShow;
	}

	public void setIsShow(String isShow) {
		this.isShow = isShow;
	}

	public BigDecimal getPoints() {
		return points;
	}

	public void setPoints(BigDecimal points) {
		this.points = points;
	}

	public CommissionDetail getCd() {
		return cd;
	}

	public void setCd(CommissionDetail cd) {
		this.cd = cd;
	}
	

	public BigDecimal getTicket() {
		return ticket;
	}

	public void setTicket(BigDecimal ticket) {
		this.ticket = ticket;
	}

	@Override
    public String toString() {
    	StringBuffer str=new StringBuffer();
    	str.append("[");
    	str.append("id="+id);
    	str.append(",parentId="+parentId);
    	str.append(",code="+code);
    	str.append(",userId="+userId);
    	str.append(",totalPrice="+totalPrice);
    	str.append(",payPrice="+payPrice);
    	str.append(",priceState="+priceState);
    	str.append(",remark="+remark);
    	str.append(",state="+state);
    	str.append(",type="+type);
    	str.append(",createTime="+createTime);
    	str.append(",finishTime="+finishTime);
    	str.append(",version="+version);
    	str.append(",operatorId="+operatorId);
    	str.append(",ticket="+ticket);
    	str.append("]");
    	return str.toString();
    }
}